home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_libjpeg.idb / usr / freeware / catman / u_man / cat1 / djpeg.Z / djpeg
Encoding:
Text File  |  1999-01-26  |  13.2 KB  |  265 lines

  1.  
  2.  
  3.  
  4.      DDDDJJJJPPPPEEEEGGGG((((1111))))          UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((22222222    AAAAuuuugggguuuusssstttt 1111999999997777))))          DDDDJJJJPPPPEEEEGGGG((((1111))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.       djpeg    - decompress a JPEG file to an image file
  10.  
  11.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.       ddddjjjjppppeeeegggg    [ _o_p_t_i_o_n_s ] [ _f_i_l_e_n_a_m_e ]
  13.  
  14.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.       ddddjjjjppppeeeegggg    decompresses the named JPEG file, or the standard
  16.       input    if no file is named, and produces an image file    on the
  17.       standard output.  PBMPLUS (PPM/PGM), BMP, GIF, Targa,    or RLE
  18.       (Utah    Raster Toolkit)    output format can be selected.    (RLE
  19.       is supported only if the URT library is available.)
  20.  
  21.      OOOOPPPPTTTTIIIIOOOONNNNSSSS
  22.       All switch names may be abbreviated; for example, ----ggggrrrraaaayyyyssssccccaaaalllleeee
  23.       may be written ----ggggrrrraaaayyyy or ----ggggrrrr.    Most of    the "basic" switches
  24.       can be abbreviated to    as little as one letter.  Upper    and
  25.       lower    case are equivalent (thus ----BBBBMMMMPPPP is the same as ----bbbbmmmmpppp).
  26.       British spellings are    also accepted (e.g., ----ggggrrrreeeeyyyyssssccccaaaalllleeee),
  27.       though for brevity these are not mentioned below.
  28.  
  29.       The basic switches are:
  30.  
  31.       ----ccccoooolllloooorrrrssss _N
  32.            Reduce image to at most N colors.  This reduces the
  33.            number of colors    used in    the output image, so that it
  34.            can be displayed    on a colormapped display or stored in
  35.            a colormapped file format.  For example,    if you have an
  36.            8-bit display, you'd need to reduce to 256 or fewer
  37.            colors.
  38.  
  39.       ----qqqquuuuaaaannnnttttiiiizzzzeeee _N
  40.            Same as ----ccccoooolllloooorrrrssss.     ----ccccoooolllloooorrrrssss is the    recommended name,
  41.            ----qqqquuuuaaaannnnttttiiiizzzzeeee is provided only for backwards    compatibility.
  42.  
  43.       ----ffffaaaasssstttt
  44.            Select recommended processing options for fast, low
  45.            quality output.    (The default options are chosen    for
  46.            highest quality output.)     Currently, this is equivalent
  47.            to ----ddddcccctttt ffffaaaasssstttt ----nnnnoooossssmmmmooooooootttthhhh ----oooonnnneeeeppppaaaassssssss ----ddddiiiitttthhhheeeerrrr oooorrrrddddeeeerrrreeeedddd.
  48.  
  49.       ----ggggrrrraaaayyyyssssccccaaaalllleeee
  50.            Force gray-scale    output even if JPEG file is color.
  51.            Useful for viewing on monochrome    displays; also,    ddddjjjjppppeeeegggg
  52.            runs noticeably faster in this mode.
  53.  
  54.       ----ssssccccaaaalllleeee _M/_N
  55.            Scale the output    image by a factor M/N.    Currently the
  56.            scale factor must be 1/1, 1/2, 1/4, or 1/8.  Scaling is
  57.            handy if    the image is larger than your screen; also,
  58.            ddddjjjjppppeeeegggg runs much faster when scaling down    the output.
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                        (printed 12/16/98)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      DDDDJJJJPPPPEEEEGGGG((((1111))))          UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((22222222    AAAAuuuugggguuuusssstttt 1111999999997777))))          DDDDJJJJPPPPEEEEGGGG((((1111))))
  71.  
  72.  
  73.  
  74.       ----bbbbmmmmpppp Select BMP output format    (Windows flavor).  8-bit
  75.            colormapped format is emitted if    ----ccccoooolllloooorrrrssss    or ----ggggrrrraaaayyyyssssccccaaaalllleeee
  76.            is specified, or    if the JPEG file is gray-scale;
  77.            otherwise, 24-bit full-color format is emitted.
  78.  
  79.       ----ggggiiiiffff Select GIF output format.  Since    GIF does not support
  80.            more than 256 colors, ----ccccoooolllloooorrrrssss 222255556666 is assumed (unless
  81.            you specify a smaller number of colors).
  82.  
  83.       ----oooossss2222 Select BMP output format    (OS/2 1.x flavor).  8-bit
  84.            colormapped format is emitted if    ----ccccoooolllloooorrrrssss    or ----ggggrrrraaaayyyyssssccccaaaalllleeee
  85.            is specified, or    if the JPEG file is gray-scale;
  86.            otherwise, 24-bit full-color format is emitted.
  87.  
  88.       ----ppppnnnnmmmm Select PBMPLUS (PPM/PGM)    output format (this is the
  89.            default format).     PGM is    emitted    if the JPEG file is
  90.            gray-scale or if    ----ggggrrrraaaayyyyssssccccaaaalllleeee is specified; otherwise PPM
  91.            is emitted.
  92.  
  93.       ----rrrrlllleeee Select RLE output format.  (Requires URT    library.)
  94.  
  95.       ----ttttaaaarrrrggggaaaa
  96.            Select Targa output format.  Gray-scale format is
  97.            emitted if the JPEG file    is gray-scale or if ----ggggrrrraaaayyyyssssccccaaaalllleeee
  98.            is specified; otherwise,    colormapped format is emitted
  99.            if ----ccccoooolllloooorrrrssss is specified;    otherwise, 24-bit full-color
  100.            format is emitted.
  101.  
  102.       Switches for advanced    users:
  103.  
  104.       ----ddddcccctttt iiiinnnntttt
  105.            Use integer DCT method (default).
  106.  
  107.       ----ddddcccctttt ffffaaaasssstttt
  108.            Use fast    integer    DCT (less accurate).
  109.  
  110.       ----ddddcccctttt ffffllllooooaaaatttt
  111.            Use floating-point DCT method.  The float method    is
  112.            very slightly more accurate than    the int    method,    but is
  113.            much slower unless your machine has very    fast
  114.            floating-point hardware.     Also note that    results    of the
  115.            floating-point method may vary slightly across
  116.            machines, while the integer methods should give the
  117.            same results everywhere.     The fast integer method is
  118.            much less accurate than the other two.
  119.  
  120.       ----ddddiiiitttthhhheeeerrrr ffffssss
  121.            Use Floyd-Steinberg dithering in    color quantization.
  122.  
  123.       ----ddddiiiitttthhhheeeerrrr oooorrrrddddeeeerrrreeeedddd
  124.            Use ordered dithering in    color quantization.
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                        (printed 12/16/98)
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.      DDDDJJJJPPPPEEEEGGGG((((1111))))          UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((22222222    AAAAuuuugggguuuusssstttt 1111999999997777))))          DDDDJJJJPPPPEEEEGGGG((((1111))))
  137.  
  138.  
  139.  
  140.       ----ddddiiiitttthhhheeeerrrr nnnnoooonnnneeee
  141.            Do not use dithering in color quantization.  By
  142.            default,    Floyd-Steinberg    dithering is applied when
  143.            quantizing colors; this is slow but usually produces
  144.            the best    results.  Ordered dither is a compromise
  145.            between speed and quality; no dithering is fast but
  146.            usually looks awful.  Note that these switches have no
  147.            effect unless color quantization    is being done.
  148.            Ordered dither is only available    in ----oooonnnneeeeppppaaaassssssss mode.
  149.  
  150.       ----mmmmaaaapppp _f_i_l_e
  151.            Quantize    to the colors used in the specified image
  152.            file.  This is useful for producing multiple files with
  153.            identical color maps, or    for forcing a predefined set
  154.            of colors to be used.  The _f_i_l_e must be a GIF or    PPM
  155.            file. This option overrides ----ccccoooolllloooorrrrssss and ----oooonnnneeeeppppaaaassssssss.
  156.  
  157.       ----nnnnoooossssmmmmooooooootttthhhh
  158.            Use a faster, lower-quality upsampling routine.
  159.  
  160.       ----oooonnnneeeeppppaaaassssssss
  161.            Use one-pass instead of two-pass    color quantization.
  162.            The one-pass method is faster and needs less memory,
  163.            but it produces a lower-quality image.  ----oooonnnneeeeppppaaaassssssss    is
  164.            ignored unless you also say ----ccccoooolllloooorrrrssss _N.  Also, the one-
  165.            pass method is always used for gray-scale output    (the
  166.            two-pass    method is no improvement then).
  167.  
  168.       ----mmmmaaaaxxxxmmmmeeeemmmmoooorrrryyyy _N
  169.            Set limit for amount of memory to use in    processing
  170.            large images.  Value is in thousands of bytes, or
  171.            millions    of bytes if "M"    is attached to the number.
  172.            For example, ----mmmmaaaaxxxx 4444mmmm selects 4000000 bytes.  If more
  173.            space is    needed,    temporary files    will be    used.
  174.  
  175.       ----oooouuuuttttffffiiiilllleeee _n_a_m_e
  176.            Send output image to the    named file, not    to standard
  177.            output.
  178.  
  179.       ----vvvveeeerrrrbbbboooosssseeee
  180.            Enable debug printout.  More ----vvvv's give more output.
  181.            Also, version information is printed at startup.
  182.  
  183.       ----ddddeeeebbbbuuuugggg
  184.            Same as ----vvvveeeerrrrbbbboooosssseeee.
  185.  
  186.      EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
  187.       This example decompresses the    JPEG file foo.jpg, quantizes
  188.       it to    256 colors, and    saves the output in 8-bit BMP format
  189.       in foo.bmp:
  190.  
  191.            ddddjjjjppppeeeegggg ----ccccoooolllloooorrrrssss 222255556666 ----bbbbmmmmpppp _f_o_o._j_p_g >>>>    _f_o_o._b_m_p
  192.  
  193.  
  194.  
  195.      Page 3                        (printed 12/16/98)
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.      DDDDJJJJPPPPEEEEGGGG((((1111))))          UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((22222222    AAAAuuuugggguuuusssstttt 1111999999997777))))          DDDDJJJJPPPPEEEEGGGG((((1111))))
  203.  
  204.  
  205.  
  206.      HHHHIIIINNNNTTTTSSSS
  207.       To get a quick preview of an image, use the ----ggggrrrraaaayyyyssssccccaaaalllleeee
  208.       and/or ----ssssccccaaaalllleeee    switches.  ----ggggrrrraaaayyyyssssccccaaaalllleeee ----ssssccccaaaalllleeee 1111////8888 is the
  209.       fastest case.
  210.  
  211.       Several options are available    that trade off image quality
  212.       to gain speed.  ----ffffaaaasssstttt    turns on the recommended settings.
  213.  
  214.       ----ddddcccctttt ffffaaaasssstttt and/or ----nnnnoooossssmmmmooooooootttthhhh gain speed    at a small sacrifice
  215.       in quality.  When producing a    color-quantized    image,
  216.       ----oooonnnneeeeppppaaaassssssss ----ddddiiiitttthhhheeeerrrr oooorrrrddddeeeerrrreeeedddd is fast but much lower quality than
  217.       the default behavior.     ----ddddiiiitttthhhheeeerrrr nnnnoooonnnneeee may give acceptable
  218.       results in two-pass mode, but    is seldom tolerable in one-
  219.       pass mode.
  220.  
  221.       If you are fortunate enough to have very fast    floating point
  222.       hardware, ----ddddcccctttt ffffllllooooaaaatttt may be even faster than ----ddddcccctttt ffffaaaasssstttt.  But
  223.       on most machines ----ddddcccctttt    ffffllllooooaaaatttt is slower    than ----ddddcccctttt iiiinnnntttt; in this
  224.       case it is not worth using, because its theoretical accuracy
  225.       advantage is too small to be significant in practice.
  226.  
  227.      EEEENNNNVVVVIIIIRRRROOOONNNNMMMMEEEENNNNTTTT
  228.       JJJJPPPPEEEEGGGGMMMMEEEEMMMM
  229.            If this environment variable is set, its    value is the
  230.            default memory limit.  The value    is specified as
  231.            described for the ----mmmmaaaaxxxxmmmmeeeemmmmoooorrrryyyy switch.  JJJJPPPPEEEEGGGGMMMMEEEEMMMM overrides
  232.            the default value specified when    the program was
  233.            compiled, and itself is overridden by an    explicit
  234.            ----mmmmaaaaxxxxmmmmeeeemmmmoooorrrryyyy.
  235.  
  236.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  237.       ccccjjjjppppeeeegggg(1), jjjjppppeeeeggggttttrrrraaaannnn(1), rrrrddddjjjjppppggggccccoooommmm(1), wwwwrrrrjjjjppppggggccccoooommmm(1)
  238.       ppppppppmmmm(5), ppppggggmmmm(5)
  239.       Wallace, Gregory K.  "The JPEG Still Picture Compression
  240.       Standard", Communications of the ACM,    April 1991 (vol. 34,
  241.       no. 4), pp. 30-44.
  242.  
  243.      AAAAUUUUTTTTHHHHOOOORRRR
  244.       Independent JPEG Group
  245.  
  246.      BBBBUUUUGGGGSSSS
  247.       Arithmetic coding is not supported for legal reasons.
  248.  
  249.       To avoid the Unisys LZW patent, ddddjjjjppppeeeegggg    produces uncompressed
  250.       GIF files.  These are    larger than they should    be, but    are
  251.       readable by standard GIF decoders.
  252.  
  253.       Still    not as fast as we'd like.
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.      Page 4                        (printed 12/16/98)
  262.  
  263.  
  264.  
  265.